#include "stdio.h"
#include "stdlib.h"
typedef struct QNode{
	int data;
	struct QNode * next;
}node,*list;

typedef struct List{
	list front,rear;
}Linklist;

void init(Linklist *l){
	l->front=l->rear=(list)malloc(sizeof(QNode));
	l->front->next=NULL;
}

void insert(Linklist *l,int x){
	node * n=(node *)malloc(sizeof(QNode));
	n->data=x;
	n->next=NULL;
	l->rear->next=n;
	l->rear=n;
}

void main(){
	Linklist *l;
	l=(Linklist *)malloc(sizeof(List));
	init(l);
	insert(l,10);
	insert(l,44);
	printf("%d",l->rear->next->data);
}